package com.woniu.woniuk16.controller;


import com.woniu.woniuk16.mapper.WoniuResourceMapper;
import com.woniu.woniuk16.model.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author tiangle
 * @since 2021-12-21
 */
@RestController
@RequestMapping("/woniuResource")
public class WoniuResourceController {
    @Resource
    private WoniuResourceMapper woniuResourceMapper;

    @GetMapping("/test")
    public Result test(){
        List<String> url = woniuResourceMapper.getUrl(1);
        return Result.getInstance(url).setMessage("22222");
    }

}

